package com.ruoyi.system.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.NewBasicEntity;
import com.ruoyi.common.core.domain.entity.SysUser;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class VehicleDto extends NewBasicEntity {

    /** 车辆唯一标识 */
    private Long vehicleId;

    /** 驾驶员ID */
    @Excel(name = "驾驶员")
    private SysUser driver;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String vehicleNumber;

    /** 制造商 */
    @Excel(name = "制造商")
    private String manufacturer;

    /** 车型 */
    @Excel(name = "车型")
    private String model;

    /** 载重容量 */
    @Excel(name = "载重容量")
    private BigDecimal capacity;

    /** 车辆状态 */
    @Excel(name = "车辆状态")
    private Long state;

    /** 注册日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registrationDate;

    /** 最后维护日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后维护日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastMaintenanceDate;

    /** 删除标识 */
    private Long isDelete;
}
